package com.fpmsa.officeweb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Auther: Huang Yuehong
 * @Description: 微信引导页控制器
 * @Date: 2018/8/24 10:14
 */

@Controller
@RequestMapping(value="/nav")
public class NavController {

    private String PREFIX = "templates/wapnav/";

    /**
     * 跳转到微信端引导页面
     */
    @RequestMapping("/index")
    public String index() {
        return PREFIX + "nav_index.html";
    }

    /**
     * 跳转到微信端“关于我们”页面
     */
    @RequestMapping("/about")
    public String about() {
        return PREFIX + "nav_about.html";
    }

    /**
     * 跳转到微信端“新闻资讯”页面
     */
    @RequestMapping("/news")
    public String news() {
        return PREFIX + "nav_news.html";
    }

    /**
     * 跳转到微信端“新时代经理”页面
     */
    @RequestMapping("/npmes")
    public String npmes() {
        return PREFIX + "nav_npmes.html";
    }

    /**
     * 跳转到微信端“党建e家”页面
     */
    @RequestMapping("/party")
    public String party() {
        return PREFIX + "nav_party.html";
    }

    /**
     * 跳转到微信端“会员中心”页面
     */
    @RequestMapping("/member")
    public String member() {
        return PREFIX + "nav_member.html";
    }

    /**
     * 跳转到微信端“公益培养计划”页面
     */
    @RequestMapping("/npmes1")
    public String npmes1() {
        //return PREFIX + "nav_npmes1.html";
        return "redirect:/wx/wx_npmes1";
    }

}
